home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 …ember: Reference Library / Apple Developer Reference Library (December 1999) (Disk 1).iso / pc / technical documentation / macintosh technotes and q&as / technotes / tn / rd_1077.hqx / Routine Descriptors in lib / DemoLib.h < prev    next >
Encoding:
Text File  |  1996-09-09  |  493 b   |  16 lines

  1. // DemoLib.h
  2.  
  3. typedef pascal void (*Do_DemoProcPtr)(void);
  4. typedef pascal void (*Set_DemoValueProcPtr)(long);
  5. typedef pascal long (*Get_DemoValueProcPtr)(void);
  6.  
  7. enum {
  8.     kDo_DemoProcInfo = kPascalStackBased,
  9.     kSet_DemoValueProcInfo = kPascalStackBased | STACK_ROUTINE_PARAMETER(1, SIZE_CODE(sizeof(long))),
  10.     kGet_DemoValueProcInfo = kPascalStackBased | RESULT_SIZE(SIZE_CODE(sizeof(long)))
  11. };
  12.  
  13. pascal void Do_Demo(void);
  14. pascal void Set_DemoValue(long pLong);
  15. pascal long Get_DemoValue(void);
  16.